Fix bench-compare workflow for fork PRs#182
Merged
NullVoxPopuli merged 2 commits intomainfrom Mar 18, 2026
Merged
Conversation
Contributor
🏎️ Benchmark Comparison
Full mitata output |
Use github.event.pull_request.head.sha instead of github.head_ref for the checkout ref, since head_ref is a branch name that only exists on the fork remote and causes checkout to fail for fork PRs. Also guard post-bench steps with steps.checkout.outcome == 'success' so they don't fail when checkout itself fails. Co-authored-by: NullVoxPopuli <[email protected]>
Copilot
AI
changed the title
[WIP] Fix the bench script for GH
Fix bench-compare workflow for fork PRs
Mar 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bench-compare workflow fails on fork PRs because
ref: ${{ github.head_ref }}resolves to a branch name that only exists on the fork remote, not onorigin. Confirmed via PR #181 fromNullVoxPopuli-ai-agent/ember-eslint-parser.github.event.pull_request.head.sharesolves correctly for both same-repo and fork PRsFormat PR comment,Write job summary, andPost PR commentpreviously ran withif: always(), causing secondary failures when checkout failed and no files existed📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.